<html>
<head>
<link href="../../../Objects/sofa_white.css" rel="stylesheet" type="text/css" />
</head>
<body>
	<div id="contenu">
		
		<center><h3>Creation of a Scene (2/9)</h3></center>
		<center><img src="1_FullObject.png" width="300" name="FullObject" align="middle"></center>
		
		<br><div id="orangeText">Description</div>
        
        <p>In this step, we add a mechanical object with a mass and a solver to simulate our deformable body. <a href="../Pendulum/0_Pendulum.scn">See this tutorial</a></p>
                
        <div id="tutorialAction"><p>Add a new node to the <strong>root</strong> node. Rename the new node "Object".</p>   
        
        <p>Add an <strong>EulerImplicitSolver</strong>, <strong>CGLinearSolver</strong>, <strong>MechanicalObject</strong> and <strong>UniformMass</strong> component to the <strong>Object</strong> node.</p> </div>   

		<div id="orangeText">Key points</div>
        
        <p> We will add an internal force field, the <strong>PlaneForceField</strong>. It simulates a plane (direction + distance to the origin).
        <br> As a start, we will simulate a collision with a floor using this kind of "virtual object". In further steps, we will see how to use any real object as an obstacle.</p>
        
        <p><div id="tutorialAction">Find the <strong>PlaneForceField</strong> component and add it to the <strong>Object</strong> node. Open the <strong>PlaneForceField</strong> properties, and change the <strong>plane normal</strong> property from <strong>(0 1 0)</strong> to "(0 0 1)", and the <strong>plane d coef</strong> property from <strong>0</strong> to "-10". In the <strong>root<strong> node properties, change the <strong>gravity</strong> from <strong>(0 -9.81 0)</strong> to "(0 0 -9.81)" </div></p> 

		<br><div id="orangeText">Results</div>
        
        <p><div id="tutorialAction">Run in SOFA and animate.</div></p>
        
		<p>A particle falls along the direction of the gravity, and remains on the plane defined by the <b>PlaneForceField</b>. Our dragon doesn't move. (Note: you may need to adjust the viewing angle in SOFA to see the plane. Make sure <strong>Collision</strong> is selected in the <strong>View</strong> tab in SOFA.)</p>

		<div id="orangeText">Related</div>
 
         <p><div id="tutorialAction">Modify the parameters of the <b>PlaneForceField</b>, and understand your changes.</div></p>

                <br><center><h3><a href="0_FullObject.scn">Previous</a> ____________  <a href="2_FullObject.scn">Next</a></center></h3>
	</div>
</body>
</html>
